home *** CD-ROM | disk | FTP | other *** search
- Path: news.iag.net!news
- From: jatmon@iag.net (John R Buchan)
- Newsgroups: comp.lang.c
- Subject: Re: Turbo C
- Date: 1 Jan 1996 05:39:32 GMT
- Organization: The Internet Access Group, Inc.
- Message-ID: <4c7s2k$cr5@news.iag.net>
- References: <4c3r40$5uv@soap.news.pipex.net>
- NNTP-Posting-Host: pm3-orl1.iag.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- In article <4c3r40$5uv@soap.news.pipex.net>, fab35@dial.pipex.com2 says...
- >
- >Help!!
- >
- >I am trying to get a float from a string using the stdlib.h function
- >'atof'. However, when it calls this function I get the message
- >'scanf: floating point formats not linked
- >Abnormal program termination'
- >
- >Has anyone had this problem before.
-
- Yes.
-
- <Quote from the c.l.c faq (Frequently Asked Question) list>
-
- 14.13: I'm having trouble with a Turbo C program which crashes and says
- something like "floating point formats not linked."
-
- A: Some compilers for small machines, including Borland's (and
- Ritchie's original PDP-11 compiler), leave out certain floating
- point support if it looks like it will not be needed. In
- particular, the non-floating-point versions of printf() and
- scanf() save space by not including code to handle %e, %f, and
- %g. It happens that Borland's heuristics for determining
- whether the program uses floating point are insufficient, and
- the programmer must sometimes insert an extra, explicit call to
- a floating-point library routine to force loading of floating-
- point support. (See the comp.os.msdos.programmer FAQ list for
- more information.)
-
- <end quote>
-
- The faq list is available for anonymous ftp from rtfm.mit.edu
- /pub/usenet/comp.lang.c. The comp.os.msdos.programmer list will be
- in /pub/usenet/comp.os.msdos.programmer (see a pattern here :-).
-
- --
- John R Buchan -:|:- Looking for that elusive FAQ? ftp to:
- jatmon@mail.iag.net -:|:- rtfm.mit.edu /pub/usenet-by-group/....
-
-